using System.Collections.Generic;

namespace BCW.Friends
{
	public struct PlayerInfo
	{
		public string playerId;

		public string name;

		public string skinId;

		public string roomName;

		public int gameMode;

		public string photonVersion;

		public bool isOnline;

		public bool isNew;

		public bool isLocal;

		public bool inviteToBattle;

		public override string ToString()
		{
			return "playerId: " + playerId + "\nname: " + name + "\nskinId: " + skinId + "\nroomName: " + roomName + "\nphotonVersion: " + photonVersion + "\nisOnline: " + isOnline;
		}

		public List<object> ToList()
		{
			List<object> list = new List<object>();
			list.Add(playerId);
			list.Add(name);
			list.Add(skinId);
			return list;
		}

		public void InitByList(List<object> tmpList)
		{
			playerId = ((tmpList[0] == null) ? string.Empty : (tmpList[0] as string));
			name = ((tmpList[1] == null) ? string.Empty : (tmpList[1] as string));
			skinId = ((tmpList[2] == null) ? string.Empty : (tmpList[2] as string));
		}
	}
}
